package com.zte.springboot_smbms.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Hello {
    @RequestMapping("/hello")
    public String getHello(Model model){
        System.out.println("进入getHello()方法");
        model.addAttribute("msg","陈日天丑傻比");
        return "success";
    }

    @RequestMapping("/hello1")
    public String getHello1(Model model){
        System.out.println("进入getHello()方法");
        model.addAttribute("msg","胡谨标是个臭傻逼！");
        return "success";
    }

}
